home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Champak 52
/
Volume 52 - JOGO DISK .iso
/
Games
/
shopdrop.swf
/
scripts
/
__Packages
/
BuildingLeft.as
next >
Wrap
Text File
|
2007-09-27
|
752b
|
25 lines
class BuildingLeft extends MovieClip
{
function BuildingLeft()
{
super();
this.pos = new smashing.Point3D(0,-127.8,0);
this.origpos = this.pos.copy();
this.baseWidth = this._width;
this.baseHeight = this._height;
}
function render()
{
var _loc2_ = this.pos.x - this.origpos.x;
var _loc7_ = _loc2_ * BuildingLeft.topSlope;
var _loc6_ = _loc2_ * BuildingLeft.bottomSlope;
var _loc4_ = this.origpos.y - _loc7_;
var _loc5_ = this.origpos.y + this.baseHeight - _loc6_;
var _loc3_ = _loc5_ - _loc4_;
this._height = _loc3_;
this._width = this.baseWidth * (_loc3_ / this.baseHeight);
this._x = this.pos.x;
this._y = _loc4_;
}
}